package org.sun.sunshine.hp.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.*;

@RestController
public class EchoController {

    @GetMapping(value = "/echo/{name}")
    public String echo(@PathVariable String name) {
        return "Hello Nacos Discovery " + name;
    }

    @GetMapping(value = "/echo2")
    @SentinelResource("echo2")
    public String echo2(String name) {
        return "Hello Nacos Discovery " + name;
    }

}